/*
 * @Description: 简历API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2022-11-29 18:57:24
 */
import http from '@/utils/http/axios'

export function getList(params) {
  return http.request({
    url: '/resume/list',
    method: 'GET',
    params
  })
}
export function getGroupList(params) {
  return http.request({
    url: '/resume/group_list',
    method: 'GET',
    params
  })
}
export function getXmList(params) {
  return http.request({
    url: '/resume/xm_list',
    method: 'GET',
    params
  })
}
export function getTransferCodeList(params) {
  return http.request({
    url: '/resume/transfer_code_list',
    method: 'GET',
    params
  })
}
export function getProjectInfo(params) {
  return http.request({
    url: '/resume/getProjectInfo',
    method: 'GET',
    params
  })
}
export function getTplInfo(params) {
  return http.request({
    url: '/resume/getTpl',
    method: 'GET',
    params
  })
}
export function getCateWithLevel(params) {
  return http.request({
    url: '/resume/all_cate_list',
    method: 'GET',
    params
  })
}
export function getTplList(params) {
  return http.request({
    url: '/resume/getTplList',
    method: 'GET',
    params
  })
}
export function getUseTplList(params) {
  return http.request({
    url: '/resume/getUseTplList',
    method: 'GET',
    params
  })
}
export function getDocContent(params) {
  return http.request(
    {
      url: '/resume/getDocContent',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function doDeleteHeadimg(params) {
  return http.request(
    {
      url: '/resume/deleteHeadimg',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editTpl(params) {
  return http.request(
    {
      url: '/resume/saveTpl',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function searchDoc(params) {
  return http.request(
    {
      url: '/resume/searchDoc',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function deleteDoc(params) {
  return http.request(
    {
      url: '/resume/deleteDoc',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delTpl(params) {
  return http.request(
    {
      url: '/resume/delTpl',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getItemList(params) {
  return http.request({
    url: '/resume/list',
    method: 'GET',
    params
  })
}
export function getDocCacheList(params) {
  return http.request({
    url: '/resume/getDocCacheList',
    method: 'GET',
    params
  })
}
export function getDocHistoryList(params) {
  return http.request({
    url: '/resume/getDocHistoryList',
    method: 'GET',
    params
  })
}

export function editData(params) {
  return http.request(
    {
      url: '/resume/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function saveDoc(params) {
  return http.request(
    {
      url: '/resume/saveDoc',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function saveDocCache(params) {
  return http.request(
    {
      url: '/resume/saveDocCache',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function moveresume(params) {
  return http.request(
    {
      url: '/resume/moveresume',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function copyresume(params) {
  return http.request(
    {
      url: '/resume/copyresume',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function batchUpdateSort(params) {
  return http.request(
    {
      url: '/resume/batchUpdateSort',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getResumeInfo(params) {
  return http.request({
    url: '/resume/editResume',
    method: 'GET',
    params
  })
}
export function getGroupInfo(params) {
  return http.request({
    url: '/resume/editGroupItem',
    method: 'GET',
    params
  })
}
export function getDocWithLevel(params) {
  return http.request({
    url: '/resume/getDocWithLevel',
    method: 'GET',
    params
  })
}
export function getOnlyGroupList(params) {
  return http.request({
    url: '/resume/onlyGroupList',
    method: 'GET',
    params
  })
}
export function getCacheDocContent(params) {
  return http.request(
    {
      url: '/resume/getCacheDocContent',
      method: 'GET',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getHistoryDocContent(params) {
  return http.request(
    {
      url: '/resume/getHistoryDocContent',
      method: 'GET',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}

export function editResumeInfo(params) {
  return http.request(
    {
      url: '/resume/editResume',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function requestChangeGroup(params) {
  return http.request(
    {
      url: '/resume/changeGroup',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function requestTransferProject(params) {
  return http.request(
    {
      url: '/resume/transferProject',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editGroupInfo(params) {
  return http.request(
    {
      url: '/resume/editGroupItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delArtItem(params) {
  return http.request(
    {
      url: '/resume/delArt',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delDocCacheItem(params) {
  return http.request(
    {
      url: '/resume/delDocCacheItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delCateItem(params) {
  return http.request(
    {
      url: '/resume/delCate',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delGroupItem(params) {
  return http.request(
    {
      url: '/resume/delGroup',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function addTransferCode(params) {
  return http.request(
    {
      url: '/resume/add_transfer_code',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}

export function addData(params) {
  return http.request(
    {
      url: '/resume/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}

export function getItemInfo(params) {
  return http.request({
    url: '/resume/editItemInfo',
    method: 'GET',
    params
  })
}
